using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;

namespace PSE.Hosting.Management.Common
{
    public class ServiceCommunicationException : Exception
    {
        private string _serverName;

        public string ServerName
        {
            get { return _serverName; }
        }

        public ServiceCommunicationException() : base() { }

        public ServiceCommunicationException(string serverName) : base() 
        {
            _serverName = serverName;
        }

        public ServiceCommunicationException(string serverName, string message): base(message)
        {
            _serverName = serverName;
        }

        public ServiceCommunicationException(string serverName, string message, Exception innerException) : base(message, innerException) 
        {
            _serverName = serverName;
        }

        public ServiceCommunicationException(string serverName, SerializationInfo info, StreamingContext context) : base(info, context) 
        {
            _serverName = serverName;
        }
    }
}
